class AddTitleContentIndicesToReports < ActiveRecord::Migration
  def self.up
    add_index(:reports, [:title],:length => 128)
    execute("create index index_content_on_reports on reports(content(128))")
  end

  def self.down
    remove_index(:reports, [:title],:length => 128)
    execute("drop index index_content_on_reports on reports")
  end
end
